package com.duoec.dw.lineage.service.analyser;

import com.alibaba.druid.sql.ast.statement.SQLAssignItem;
import com.duoec.dw.lineage.dto.TableLineageDto;

/**
 * @author xuwenzhen
 */
public interface HivePartitionAnalyser {
    /**
     * 获取当前类处理的类型
     *
     * @return SQLOrderBy子类类型
     */
    Class<SQLAssignItem> getType();

    /**
     * 解析 SQLPartitions
     *
     * @param partition    partition语句
     * @param tableLineage 当前语句的血缘关系数据
     */
    void analyse(SQLAssignItem partition, TableLineageDto tableLineage);
}
